package com.iye.puretennis.custom;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.iye.puretennis.R;

/**
 * Created with IntelliJ IDEA.
 * User: jing wu
 * Date: 2015/1/9
 * Time: 11:27
 */
public class LoadingCreator {

    public static Dialog createLoadingDialog(Context context) {



        Dialog loadingDialog = new Dialog(context,R.style.loading_dialog);// 创建自定义样式dialog

        loadingDialog.setCancelable(false);// 不可以用“返回键”取消
        loadingDialog.setContentView(R.layout.loading_dialog);// 设置布局
        return loadingDialog;

    }

}
